package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import com.example.demo.config.ApplicationContextUtil;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
public class SpringbootMybatisApplication {

	public static void main(String[] args) {
		ApplicationContext context=SpringApplication.run(SpringbootMybatisApplication.class, args);
		ApplicationContextUtil.setApplicationContext(context);
	}
}
